Skip to content

feat(UI):task UI complete & add mock api for stream#1339

Merged
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-lyjc
Aug 15, 2025
Merged

feat(UI):task UI complete & add mock api for stream#1339
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-lyjc

Conversation

@liuyangjuncong20202570

Copy link
Copy Markdown
Contributor

完成日志样式搭建
增加模拟日志数据接口

@vercel

vercel Bot commented Aug 15, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mega Ready Preview Comment Aug 15, 2025 9:18am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a task UI system with real-time log streaming capabilities for merge request (MR) pages. It adds mock APIs for streaming data and restructures the Checks component to display task execution logs and statuses.

  • Adds ORION API configuration and client setup
  • Implements Server-Sent Events (SSE) for real-time log streaming
  • Creates a new task UI with split view showing task list and log output
  • Adds mock data and endpoints for development testing

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
moon/packages/config/src/index.ts Adds ORION_API_URL configuration variable
moon/apps/web/utils/queryClient.ts Creates orionApiClient for API communication
moon/apps/web/pages/api/event.ts Implements mock SSE endpoint for streaming events
moon/apps/web/pages/[org]/mr/[link]/index.tsx Updates MR page to pass mr prop to Checks component
moon/apps/web/next.config.js Enables localhost connection for development
moon/apps/web/hooks/SSE/useRequest.ts Adds task fetching function
moon/apps/web/hooks/SSE/useGetMrTask.ts Implements React Query hook for task data
moon/apps/web/components/MrView/hook/useSSM.ts Extends SSE hooks with multi-task support
moon/apps/web/components/MrView/components/Checks/index.tsx Complete rewrite to task-based UI with SSE integration
moon/apps/web/components/MrView/components/Checks/cpns/store.ts Adds Jotai atoms for state management
moon/apps/web/components/MrView/components/Checks/cpns/Task.tsx Creates task list component with status indicators
moon/apps/web/components/Issues/utils/store.tsx Adds buildId atom for task selection
moon/apps/web/components/DiffView/parsedDiffs.ts Code formatting improvements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread moon/apps/web/hooks/SSE/useGetMrTask.ts
Comment thread moon/apps/web/components/MrView/components/Checks/index.tsx
Comment thread moon/apps/web/components/MrView/components/Checks/cpns/Task.tsx
Comment thread moon/apps/web/components/MrView/hook/useSSM.ts
Comment thread moon/apps/web/components/MrView/components/Checks/cpns/Task.tsx
@benjamin-747
benjamin-747 added this pull request to the merge queue Aug 15, 2025
Merged via the queue into gitmono-dev:main with commit 68ea011 Aug 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants